$fontSize: 12px;
$baseLineHeight: 1.5 !default;
$lineHeight: 34px;

@mixin interval_hor {
    margin-right: 4px;
}

* {
    box-sizing: border-box;
    line-height: $baseLineHeight;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
}

.container {
    width: 80%;
    margin: auto;

    .row {
        margin-left: 10px;
        margin-right: 10px;
    }

    .input {
        height: $lineHeight;
    }

    .bootstrap {
        .form-group {
            margin-bottom: 15px;
            font-size: 14px;
        }
        .form-control {
            display: block;
            width: 100%;
            height: 34px;
            padding: 6px 12px;
            color: #555;
            background-color: #fff;
            background-image: none;
            border: 1px solid #ccc;
            border-radius: 4px;
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        }

        label {
            display: inline-block;
            max-width: 100%;
            margin-bottom: 5px;
            font-weight: 700;
        }

        .checkbox, .radio {
            position: relative;
            display: block;
            margin-top: 10px;
            margin-bottom: 10px;
            font-size: 14px;

            & > * {
                @include interval_hor;
            }

            label {
                min-height: 20px;
                padding-left: 20px;
                margin-bottom: 0;
                font-weight: 400;
                cursor: pointer;
            }

            input[type=checkbox], input[type=radio] {
                position: absolute;
                margin-left: -20px;
                top: 1px;
                padding-left: 0;
            }

            input[type=radio] {
                top: 1px;
                bottom: auto;
            }
        }

        .btn {
            display: inline-block;
            padding: 6px 12px;
            margin-bottom: 0;
            font-size: 14px;
            font-weight: 400;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 4px;
        }

        .btn-default {
            color: #333;
            background-color: #fff;
            border-color: #ccc;
        }

        .form-inline {
            clear: both;
            font-size: 14px;

            & > * {
                @include interval_hor
            }

            .form-group {
                display: inline-block;
                vertical-align: middle;
                max-width: 100%;
                margin-bottom: 5px;
                font-weight: 700;

                & > * {
                    @include interval_hor;
                }

                .form-control {
                    display: inline-block;
                    width: auto;
                    vertical-align: middle;
                }

            }

            .checkbox, .radio {

                & > * {
                    @include interval_hor;
                }
                display: inline-block;
                margin-top: 0;
                margin-bottom: 0;
                vertical-align: middle;

                label {
                    min-height: 20px;
                    padding-left: 20px;
                    margin-bottom: 0;
                    font-weight: 400;
                    cursor: pointer;
                }


                input[type=checkbox], input[type=radio] {
                    position: absolute;
                    margin-left: -20px;
                    top: 1px;
                    padding-left: 0;
                }

                input[type=radio] {
                    top: 1px;
                    bottom: auto;
                }
            }
        }

        .col-3 {
            width: 25%;
            display: inline-block;
        }
        .col-offset-3 {
            margin-left: 25%;
            vertical-align: middle;
        }

        .col-9 {
            width: 75%;
            display: inline-block;
            vertical-align: middle;
        }

        .form-hor {
            .form-group {
                margin-bottom: 15px;
                font-size: 14px;
                font-weight: 700;

                label {
                    clear: both;
                    text-align: right;
                    padding: 0 15px;
                }

                .form-control {
                    width: 100%;
                    vertical-align: middle;
                }
            }

            .checkbox, .radio {
                clear: both;
                margin-top: 0;
                margin-bottom: 0;
                vertical-align: middle;

                label {
                    min-height: 20px;
                    padding-left: 20px;
                    margin-bottom: 0;
                    font-weight: 400;
                    cursor: pointer;
                }


                input[type=checkbox], input[type=radio] {
                    position: absolute;
                    margin-left: -20px;
                    top: 1px;
                    padding-left: 0;
                }

                input[type=radio] {
                    top: 1px;
                    bottom: auto;
                }
            }
        }
    }
}